package cn.itsource.controller;

import cn.itsource.domain.user.User;
import jdk.nashorn.internal.objects.annotations.Getter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {


    @GetMapping("user/findOne/{id}")
    public User findOne(@PathVariable Long id){
        return new User(id,"zs");
    }
}
